#!/bin/bash
################################################################################
#
#	VirtualTwitter
#
#	"Twitter search client for GNOME"
#
#	Version 0.3
#
#	Copyright (C) [2009] [Jan Hofmann <elusive@virtualpixel.de>]
#
#	This program is free software; you can redistribute it and/or modify it
#	under the terms of the GNU General Public License as published by the Free
#	Software Foundation; either version 3 of the License, or (at your option)
#	any later version.
#
#	This program is distributed in the hope that it will be useful, but WITHOUT
#	ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
#	FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
#	more details.
#
#	You should have received a copy of the GNU General Public License along with
#	this program; if not, see <http://www.gnu.org/licenses/>.
#
################################################################################
echo "install VirtualTwitter in /opt/virtualtwitter/ ..."
sudo mkdir /opt/virtualtwitter
sudo cp virtualtwitter.rb /opt/virtualtwitter
sudo cp virtualtwitter.png /opt/virtualtwitter
echo "creating starter in /usr/local/bin/ ..."
sudo ln -s /opt/virtualtwitter/virtualtwitter.rb /usr/local/bin/virtualtwitter
sudo chmod +x /opt/virtualtwitter/virtualtwitter.rb
echo "creating configuration..."
mkdir ~/.config/virtualtwitter
mkdir ~/.config/virtualtwitter/profile_pictures
cp searchterms.conf.example ~/.config/virtualtwitter
echo "#####################################################################"
echo "Finished!"
echo "Now you have to create your configuration."
echo "You may look at the example file:"
echo "~/.config/virtualtwitter/searchterms.conf.examples"
echo "Then you have to create:"
echo "~/.config/virtualtwitter/searchterms.conf"
echo "Have fun!"

